﻿Public Class LoaiTinBUS
    Public Sub Insert(ByVal loaitin As LoaiTinDTO)
        Dim LoaiTinDAO As New LoaiTinDAO
        LoaiTinDAO.Insert(loaitin)
    End Sub
    Public Sub Delete(ByVal loaitin As LoaiTinDTO)
        Dim LoaiTinDAO As New LoaiTinDAO
        LoaiTinDAO.Delete(loaitin)
    End Sub
    Public Sub Update(ByVal loaitin As LoaiTinDTO)
        Dim LoaiTinDAO As New LoaiTinDAO
        LoaiTinDAO.Update(loaitin)
    End Sub
    Public Function GetAll() As DataTable
        Dim LoaiTinDAO As New LoaiTinDAO
        Dim dt As New DataTable
        dt = LoaiTinDAO.GetAll()
        Return dt
    End Function
    Public Function GetItemID(ByVal ten As String) As LoaiTinDTO
        Dim LoaiTinDAO As New LoaiTinDAO
        Dim dt As New LoaiTinDTO
        dt = LoaiTinDAO.GetItemID(ten)
        Return dt
    End Function
End Class
